<form method="post" name="testInputText" action="/views/widget-inputDate.xhtml" id="testInputText" class="test" style="color: red;"><input type="hidden" name="testInputText" value="1"></input><dl id="the-date" class="ui-corner-all"><dt><label for="the-date">Date</label></dt><dd><input type="text" name="the-date" value="2013-04-04" title="Date" size="30" class="ui-corner-all"></input></dd></dl><input type="submit" name="ok" value="Go" id="ok"></input></form><script type="text/javascript">$('#the-date input').datepicker({dateFormat: "yy-dd-mm"});</script>